import React, { Component, PropTypes } from 'react'
import { render } from 'react-dom'
//const ReactRouter = require('react-router');
//let { Router, Route, Link ,browserHistory, useRouterHistory } from 'react-router';
import Router from 'react-router/lib/Router'
import Route from 'react-router/lib/Route'
import browserHistory from 'react-router/lib/browserHistory'
import useRouterHistory from 'react-router/lib/useRouterHistory'

import { createHistory, useBasename, createHashHistory } from 'history'
import { Breadcrumb } from 'antd'

import Home from './components/Home'
import Import from './components/Import'
import Export from './components/Export'
//import AnalysisAll from './components/AnalysisAll'
import './index.css'

const history = useRouterHistory(createHashHistory)();

class Root extends React.Component {
    render() {
        return (
           <Router history={history}>
                <Route name="入口" breadcrumbName="入口" path="/" component={Home} />
                <Route name="import" breadcrumbName="导入" path="/import" component={Import} />
                <Route name="export" breadcrumbName="导出" path="/export" component={Export} />
           </Router>
        )
    }
}

render(<Root />,document.getElementById("container"))